package cn.shop.admin.service.impl;

import cn.shop.base.MyServiceImpl;
import cn.shop.admin.entity.dictionaryModule.Dictionary;
import cn.shop.admin.mapper.DictionaryMapper;
import cn.shop.admin.service.DictionaryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 字典表 (Dictionary)表服务实现类
 *
 * @author jzw
 * @since 2021-11-03 13:07:21
 */
@Service("dictionaryService")
public class DictionaryServiceImpl extends MyServiceImpl<DictionaryMapper, Dictionary> implements DictionaryService {


	/**
	 * 通过code 查询所有子集
	 *
	 * @param code 字典标识
	 * @return cn.shop.utils.ApiResult<java.util.List < java.lang.Object>>
	 * @author jzw
	 * @since 2021/11/4 13:24
	 */
	@Override
	public List<Dictionary> queryDicChildrenByCode(String code) {
		return baseMapper.queryDicChildrenByCode(code);
	}

}

